<template>
  <div>
    <nav>
      <span><router-link to="/news/text">文字新闻</router-link></span>
      <span><router-link to="/news/pic">图片新闻</router-link></span>
    </nav>
    <!-- 二级路由出口 -->
    <div class="box">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style>
.box {
  border: 2px solid red;
}
</style>